package com.shelpe.services.sinbad.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shelpe.services.sinbad.dao.SemiautoMapper;
import com.shelpe.services.sinbad.model.Semiauto;
import com.shelpe.services.sinbad.service.SemiautoService;

@Service
public class SemiautoServiceImpl implements SemiautoService{

	@Autowired
	SemiautoMapper semiautoMapper;
	
	@Override
	public Long getUserId(Long semiautoId) {
		Semiauto semiauto = semiautoMapper.selectByPrimaryKey(semiautoId.intValue());
		return semiauto.getUserId().longValue();
	}

}
